package com.ibeeking.found.org.b.rest.service;

import com.ibeeking.found.org.service.common.bo.EmployeeAddressBO;
import com.ibeeking.found.org.service.common.dos.EmployeeAddressDO;
import com.ibeeking.found.org.service.common.param.EmployeeAddressParam;
import com.ibeeking.found.org.service.common.vo.EmployeeAddressVO;

import java.util.List;


/**
 * IEmployeeAddressService
 *
 * @Author ibeeking
 * @Date 2021-01-27 18:50
 */
public interface IEmployeeAddressService {

    EmployeeAddressBO selById(Long id);

    List<EmployeeAddressDO> selByEmployeeId(Long memberId);

    /***
     * 新增
     */
    Boolean add(EmployeeAddressParam param);

    /***
     * 修改
     */
    Boolean modify(EmployeeAddressParam param);

    /***
     * 通过id查询
     */
    EmployeeAddressVO view(Long id);

    /***
     * 通过id删除
     */
    Boolean del(Long id);

    /**
     * 把老的默认地址改为非默认(默认地址只能有一个)
     * @param employeeId
     * @return
     */
    Boolean modifyOldDefaultYesToNo(Long employeeId);
}